package demo2;

import jdk.swing.interop.SwingInterOpUtils;

public class Cat extends Anima1 implements ISwimming,IRunning {
    public Cat(String name, int age) {
        super(name, age);
    }

    @Override
    public void play() {
        System.out.println("跳啊跳啊>>>");

    }

    @Override
    public void run() {
        System.out.println("cat IRunning的方法");
    }

    @Override
    public void swim() {
        System.out.println("cat ISwimming的方法");
    }
}
